<template>
   <div >

     <a @click="btn1"  href="https://www.baidu.com/">去百度</a>
     <hr>
     <a @click="btn2(10,$event)" href="https://www.baidu.com/">去百度</a>

   </div>
</template>

<script>
export default {

  methods: {
    btn1(e) {
      e.preventDefault();
    },
    btn2(num,e) {
      e.preventDefault();
    }

  }
}
</script>

<style scoped>
</style>
